import Vue from 'vue'
import VueRouter from 'vue-router'
import seller from '../views/seller.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'seller',
    component:  () => import('../views/goods.vue')
  },
  {
    path: '/seller',
    name: 'seller',
    component: seller
  },
  {
    path: '/goods',
    name: 'goods',
    component: () => import('../views/goods.vue')
  },
  {
    path: '/ratings',
    name: 'ratings',
    component: () => import('../views/ratings.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes,
  linkActiveClass: 'link-active'
})

export default router



